package com.jzo2o.foundations.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.model.dto.response.ServeAggregationSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeAggregationTypeSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeCategoryResDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;

import java.math.BigDecimal;
import java.util.List;

public interface IServeService extends IService<Serve> {

    PageResult<ServeResDTO> page(ServePageQueryReqDTO servePageQueryReqDTO);


    void batchAdd(List<ServeUpsertReqDTO> serveUpsertReqDTOList);

    void delete(Long id);

    void offSale(Long id);

    void onSale(Long id);

    void onHot(Long id);

    void offHot(Long id);

    Serve updatePrice(Long id, BigDecimal price);


    List<ServeAggregationSimpleResDTO> findHotServeListByRegionId(Long regionId);

    List<ServeAggregationTypeSimpleResDTO> findServeTypeListByRegionId(Long regionId);


}
